Configuring Connection Failover

Connection failover allows an application to connect to an alternate, or backup, SequeLink Server if the primary SequeLink Server is unavailable, for example, because of a hardware failure or traffic overload. Connection failover ensures that the data on which your critical JDBC applications depend is always available.

You can customize the JDBC Client for connection failover by configuring a list of alternate SequeLink servers that are tried if the primary server is not accepting connections. Connection attempts continue until a connection is successfully established or until all the alternate SequeLink servers have been tried the specified number of times.

For example, suppose you have the environment shown in Figure 5-2 with multiple SequeLink servers: SequeLink server A, B, and C. SequeLink server A is designated as the primary SequeLink server, SequeLink server B is the first alternate server, and SequeLink Server C is the second alternate server.

Figure 5-2. Connection Failover Using the JDBC Client

The connection attempt starts at the primary SequeLink Server, then proceeds to the first and second alternate SequeLink Servers.

First, the application attempts to connect to the primary SequeLink server, SequeLink server A (1). If connection failover is enabled and SequeLink server A fails to accept the connection, the application attempts to connect to SequeLink Server B (2). If that connection attempt also fails, the application attempts to connect to SequeLink Server C (3).

In this scenario, it is probable that at least one connection attempt would succeed, but if no connection attempt succeeds, the SequeLink Client can retry each alternate SequeLink server (primary and alternate) for a specified number of attempts.

To configure connection failover, you must specify a list of alternate SequeLink servers that are tried at connection time if the primary server is not accepting connections. To do this, use the AlternateServers connection property. Connection attempts continue until a connection is successfully established or until all the SequeLink servers in the list have been tried once (the default).

Optionally, you can specify the following additional connection failover features:

You can use a connection URL to direct the JDBC to use connection failover, or use a JNDI LDAP provider. Refer to the SequeLink Administrator's Guide for detailed information.